package com.wxy.demo.finally_;

import java.util.concurrent.TimeUnit;

/**
 * <p>
 *
 * </p>
 *
 * @author e-Xiaoyuan.Wang
 * @since 2023/2/2 20:39
 */
public class MyRunnable implements Runnable {
    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            long start = 0;
            try {
                sleep();
                start = System.currentTimeMillis();
            } finally {
                System.out.println(start);
            }
        }
    }

    public void sleep() {
        while (true) {
        }
    }
}
